package com.doumuxie.dto;

import java.util.Set;

/**
 * @author doumuxie
 * @version 1.0
 * @date 2020/2/7 11:08
 * @description 用户信息
 **/
public class UserDto extends BaseDto {

    public static final String USER_SESSION_KEY = "_user";

    private String username;

    private String password;

    /**
     * 拥有的角色权限
     */
    private Set<String> auth;

    public Set<String> getAuth() {
        return auth;
    }

    public void setAuth(Set<String> auth) {
        this.auth = auth;
    }

    public UserDto() {
    }

    public UserDto(String id, String username, String password) {
        super.setId(id);
        this.username = username;
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}
